import 'package:flutter/material.dart';

class Tag extends StatelessWidget {
  final double padding;
  final String text;
  final TextStyle style;
  final double radius;
  final Color background;
  final Color borderColor;
  const Tag(
      {Key key,this.padding:2.0, @required this.text, this.style:const TextStyle(color: const Color(0xFF647280),fontSize: 10.0), this.radius: 2.0,this.background: const Color(0xFFFFFFFF),this.borderColor: const Color(0xFFDBDBDB)})
      : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(this.padding),
      // alignment: Alignment.center,
      child: Text(
        this.text,
        style: this.style,
      ),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(this.radius),
        color: this.background,
        border: Border.all(
          color: this.borderColor,
        )
      ),
    );
  }
}
